#+TITLE: Miscellaneous Tweaks
#+AUTHOR:Joshua Branson
#+LATEX_HEADER: \usepackage{lmodern}
#+LATEX_HEADER: \usepackage[QX]{fontenc}

Misc config - yet to be placed in separate files

* misc
:PROPERTIES:
:ID:       487bfa28-7281-49ff-aead-86d2957149de
:END:

* Set up zenburn theme
:PROPERTIES:
:ID:       2edd6632-8f48-4ba3-bcd8-f12ac53bea7e
:END:
#+BEGIN_SRC emacs-lisp
(use-package zenburn-theme)
#+END_SRC

* setting up the agenda to run at start up
:PROPERTIES:
:ID:       20f133ea-fd66-4ded-a30c-08a419876b27
:END:

I used to use Emacs dashboard, because it looks pretty cool.  But the dashboard takes a long time to load (because I am loading all my agenda files).  And the first thing that I want to see when I open Emacs is my agenda list.

Huh.  Running org-agenda list is actually slowing dawn my emacs file quite a bit.  It's making Emacs load in all of my agenda files!

When I use this way to show the agenda, I get a weird error.
#+BEGIN_SRC sh :results output :exports both
;;(setq initial-buffer-choice 'org-agenda-list)
#+END_SRC

#+BEGIN_SRC emacs-lisp
;;(add-hook 'after-init-hook 'org-agenda-list)
#+END_SRC

* COMMENT My preferred font.  This may not be necessary.  I believe I set my default font in [[file:~/.config/emacs/custom.el::(custom-set-faces][custom.el]]
:PROPERTIES:
:ID:       2db532ec-1f5d-43da-88ba-e751e47f631d
:END:

 Make my default font be the cool [[http://sourcefoundry.org/hack/][Hack font.]]  You might have to download it for your distribution.

I used to use this function to set the default font, but it's actually just easier to set up a font config file.

window-setup-hook
after-make-frame-functions
pop-up-frame-functions
emacs-startup-hook

 #+BEGIN_SRC emacs-lisp
   (defun my/set-default-font ()
     "Command set up my default font."
     (interactive)
     (when (find-font (font-spec :family "Hack"))
       (set-default-font "Hack" nil t)
       (set-face-attribute 'default nil :height 110 )))

   (my/set-default-font)
   (add-hook 'after-make-frame-functions 'my/set-default-font)
   (add-hook 'pop-up-frame-function 'my/set-default-font)

 #+END_SRC

 #+BEGIN_SRC sh :results output :exports both :dir ~/.config/fontconfig/ :tangle no
 cat fonts.conf
 #+END_SRC

 #+RESULTS:
 #+begin_example
 <?xml version="1.0"?>
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>

 <!-- make default font be hack
 <match target="pattern">
 <test qual="any" name="family"><string>hack</string></test>
 <edit name="family" mode="assign" binding="same"><string>Ubuntu</string></edit>
 </match>
 -->
 <fontconfig>   <alias> <family>monospace</family> <prefer><family>Hack</family></prefer> </alias> </fontconfig>

 <!--
 change default font?

 <fontconfig>   <alias> <family>monospace</family> <prefer><family>Source Code Pro</family></prefer> </alias> </fontconfig>

 -->

 </fontconfig>
 #+end_example

This does something too, but I'm not sure what.
#+BEGIN_SRC emacs-lisp
  ;;(add-to-list 'default-frame-alist '(font. "Hack Regular"))
#+END_SRC
* provide this file
:PROPERTIES:
:ID:       d3a004dd-107f-490a-bfef-331d8c092019
:END:
#+BEGIN_SRC emacs-lisp
(provide 'init-misc)
#+END_SRC
